'use strict';
const Controller = require('egg').Controller;

class RegisterController extends Controller {
    async reg() {
        const { ctx, service } = this;
        let params = ctx.request.body;
        const res = await service.user.register(params);
        ctx.helper.success({ ctx, res });
    }
}

module.exports = RegisterController;